<template>
  <div id="car_list">
    <car-item v-for="(item,index) in cartList" :key="index" :cart-item="item"></car-item>
  </div>
</template>

<script>
import CarItem from "@/views/shoppingCart/childComps/CarItem";
export default {
  name: "CarList",
  components: {CarItem},
  props:{
    cartList:{
      type:Array
    }
  }
}
</script>

<style scoped>
#car_list{
  width: 100%;
  height: 200px;
  padding-top: 50px;
}
</style>
